<?php
namespace app\index\controller;

use think\facade\Env;
use think\facade\Config;

class Index extends Base
{
    public function hello($name = 'ThinkPHP5')
    {
        return 'hello,' . $name;
    }

    public function test_config()
    {
        $this->paramlist = [
          'token' => 'string',
          'user' =>'string',
          'pwd' =>'string'
        ];


       $this->check_params();

        $data = [
            'token' => $this->argv['token'],
            'user'  => $this->argv['user'],
            'pwd'   => $this->argv['pwd'],
            'ret'   => E_OK,
            'rettime' => \common::time_ms(),
        ];

        $this->resp['data'] = $data;

        $this->return_data();
    }
}
